<html>
    <head>
        <meta charset="utf-8">
        <title>
            餐饮采购订单
        </title>
        <link href="css/simple.css" rel="stylesheet" type="text/css">
		<script src="js/gly.js" type="text/javascript" charset="utf-8"></script>
    </head>
    <body>
        
		
        <div class="section">
            <div class="connect">
			<span style="font-size:30px;cursor:pointer" onclick="openNav()">&#9776; 菜单</span>
			<div id="mySidenav" class="sidenav">
          <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
		  
		    <b>集鲜蜂管理系统</b>
            <a href="ad.php">管理员主页</a>
              <a href="shougou.php">收购订单表</a>
                  <a href="shenhe.php">商户注册审核</a>
                  <a href="caigoushenhe.php">餐饮采购订单</a>
              </div>

                 <div id="main">
				 
				 <center><img src="./img/logo1.png" alt="" /></center>
                  <h2>餐饮采购订单表格</h2>
                  
				  <center>
            

            
            
            <table width="1100" border="1" cellpadding="0" cellspacing="0" style="table-layout: fixed;border-collapse: collapse">
                <tr style="background:#E6E6FA;height: 35px">
                    
                    <th width="15%">发单企业</th>
                    <th width="15%">送货地址</th>
                    <th width="10%">收货人姓名</th>
					<th width="10%">收货人电话</th>
                    <th width="10%">送货时间</th>
                    <th width="30%">订单详情</th>
                    <th width="12%">操作</th>
                </tr>
        <?php 
				include('conn.php');
				$sql="select * from restaurant";
				$result=mysqli_query($conn,$sql);
				while($row=mysqli_fetch_row($result)){
                  echo  "<tr align='center' style='height: 30px'>";                       
                  echo  "<td width='15%'>".$row[0]."</td>";
                  echo  "<td width='10%'>".$row[1]."</td>";                 
				  echo	"<td width='10%'>".$row[2]."</td>";
				  echo	"<td width='10%'>".$row[3]."</td>";
				  echo	"<td width='10%'>".$row[4]."</td>";
                  echo  "<td width='15%'>".$row[5]."</td>";
                  echo  "<td width='12%' style='background:#ffffcc;'>";
                  echo        "<a href='' style='color:green;'>确认/</a>";
                  echo        "<a href='' style='color:red;'>取消</a>";     echo "</td>" ;
                  echo  "</tr>";
				}
        ?> 
               
            </table>
        </center>
                  </div>
			
			

			
			
            </div>
        </div>
    </body>
</html>